package com.yunzone.cloud.modules.controller;

import com.yunzone.cloud.common.entity.Result;
import com.yunzone.cloud.modules.service.MessageProviderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/provider")
public class MessageProviderController {
    @Resource
    private MessageProviderService messageProviderService;
    @RequestMapping("/send")
    public Result<String> send(){
        String serial=messageProviderService.send();
        return new Result<>(200,true,"发送成功，序列号为："+serial);
    }

}
